package com.devmindset.legoframework.usage.client.service;

import com.google.gwt.core.client.GWT;

/**
 * Convenient service accessor class.
 * 
 * @author <a href="ice.penov@devmindset.com">Ice Penov</a>
 */
public final class UsageService {
	
	private static UsageServiceInterfaceAsync instance;
	
	private UsageService() {
		;
	}
	
	public static synchronized UsageServiceInterfaceAsync get() {
		if (instance == null) {
			instance = (UsageServiceInterfaceAsync) GWT.create(UsageServiceInterface.class);
		}
		return instance;
	}

}